package com.example.sunsg.okhttptest.greendao.bean;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import com.example.sunsg.okhttptest.greendao.dao.DaoMaster;

/**
 * Created by NOTE-026 on 2016/6/24.
 */
public class GreenDaoSQLiteHelper extends SQLiteOpenHelper{
    public static final int SCHEMA_VERSION = DaoMaster.SCHEMA_VERSION;

    public GreenDaoSQLiteHelper(Context context, String name, SQLiteDatabase.CursorFactory factory) {
        super(context, name, factory, SCHEMA_VERSION);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        DaoMaster.createAllTables(db,false);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
